package com.bupt.kgplatform.service;

import com.alibaba.fastjson.JSONObject;

import com.bupt.kgplatform.entity.pojo.CtbtoInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * ClassName:CoffeedbDao
 * Package:com.example.blackjavaweb.dao
 * Description:
 *
 * @Author QIQI_1999
 * @Creat 2023/9/5 11:11
 * @Version 1.0
 */
@FeignClient(url = "http://10.112.109.177:14920", name = "coffeedb")
public interface CoffeedbDao {
    @ResponseBody
    @PostMapping("/coffeedb")
    List<CtbtoInfo> getInfoList(@RequestBody JSONObject json);

    @ResponseBody
    @PostMapping("/coffeedb")
    Object getInfoCount(@RequestBody JSONObject json);

    @ResponseBody
    @PostMapping("/coffeedb")
    Object getClusterInfo(JSONObject cluster);

    @ResponseBody
    @PostMapping("/coffeedb")
    List<CtbtoInfo> getFellText(JSONObject constraints);
}
